firmware-utils/tplink-safeloader: refactor code for further board support
authorJo-Philipp Wich <[email protected]>
Wed, 24 Aug 2016 17:42:19 +0000 (19:42 +0200)
committerMatthias Schiffer <[email protected]>
Tue, 20 Dec 2016 13:38:48 +0000 (14:38 +0100)
commitb2066e617158adf6d19ddfbef5f32f80be54c3aa
tree593303aeb0d9467d0633337b910223ac3f3bb8d0
parentacaa21b54409a9c6e9b398a1ea7d20148441d560
firmware-utils/tplink-safeloader: refactor code for further board support

In order to make it easier to add new boards in the future, refactor the code
to describe the image layouts of supported boards in a struct array and alter
the image generation routines to figure out the sysupgrade partitions
automatically.

Signed-off-by: Jo-Philipp Wich <[email protected]>
src/tplink-safeloader.c